import 'EnumDefine.dart';

class CameraPreviewSize {
  final int width;
  final int height;
  final PREVIEW_SIZE_LEVEL level;
  final PREVIEW_SIZE_RATIO ratio;

  CameraPreviewSize({ this.width, this.height, this.level, this.ratio });

  Map<String, dynamic> toJson() {
    return {
      "width": width,
      "height": height,
      "level": level?.index,
      "ratio": ratio?.index,
    };
  }
}